package day03;

public class IfElseDemo {
    public static void main(String[] args) {
        double price = 300.0;
        if (price >= 500.0) {
            price *= 0.8;
            System.out.println("最终消费金额为"+price);
        } else {
            price*=0.9;
            System.out.println("最终消费金额为"+price);
        }
    }
}
